package com.xenstra.rhodiumone.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CommonUtil {

	public static String formatDate(Date dt){
		if(dt != null){
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(dt);
		}else{
			return null;
		}
	}
	
	public static void main(String[] ar){
		System.out.println(formatDate(new Date(114,0,30)));
	}
}
